<%@ include file="/include/taglibs.jsp"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>我的定单</title>
<link href="${ctx}/css/menuCommon.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<%@include file="/include/head.jsp"%>
	 <!--页面中部内容-开始-->
	 <div class="common_wraper">
	 	<div class="winTopOuter">
	 		<div class="winTopInner"></div>
	 	</div>
	 	<div class="winContent">
	 		<div class='menuWraper'>
		 		 <div class='leftMenuWraper'>
		 			 <%@include file="../account/menu.jsp" %>
		 		 </div>
		 		 <div class="rightWraper"><!-- 右边的块区域 -->
		 		 <form action="${ctx}/orderinfo/orderforminfoAction!searchMyOrderInfo.action"  id="searchOrderForm">
		 		 <input  type="hidden"  name="searchBean.status"  value="${searchBean.status }"  id="searchKey"/>
		 		  <input  type="hidden"  name="searchBean.userId"  value="${searchBean.userId }"/>
		 		 	<div class="myOrderForms">
		 		 		<div class='collectDiv'>
		 		 			<div class="titleImg"></div>
		 		 			<a href="javascript:searchOperate('00')">未处理（${fn:length(statisticMap.noBuy) }）</a><a href="javascript:searchOperate('01')">处理中（${fn:length(statisticMap.dealing )}）</a><a href="javascript:searchOperate('02')">审核中（${fn:length(statisticMap.checking) }）</a><a href="javascript:searchOperate('03')">已订购（${fn:length(statisticMap.buying) }）</a><a href="javascript:searchOperate('04')">已到货（${fn:length(statisticMap.apprival )}）</a><a href="javascript:searchOperate('05')">已入库（${fn:length(statisticMap.storage) }）</a><a href="javascript:searchOperate('ALL')">全部订单（${fn:length(statisticMap.ALL) }）</a><a href="javascript:showOpreate()">需要您处理的订单（${fn:length(statisticMap.operateDealing) }）</a>
		 		 		    <div style="display:none;" id="operateOrder">
		 		 		    <a href="javascript:searchOperate('10')">无货（${fn:length(statisticMap.noGood) }）</a><a href="javascript:searchOperate('11')">暂时缺货（${fn:length(statisticMap.tempNoGood) }）</a><a href="javascript:searchOperate('12')">无效（${fn:length(statisticMap.invalid) }）</a><a href="javascript:searchOperate('13')">退换货（${fn:length(statisticMap.returnGood) }）</a><a href="javascript:searchOperate('14')">已退货（${fn:length(statisticMap.hasReturn) }）</a><a href="javascript:searchOperate('15')">补款中（${fn:length(statisticMap.replenishment )}）</a><a href="javascript:searchOperate('16')">联系卖家中（${fn:length(statisticMap.contact) }）</a><a href="javascript:searchOperate('17')">问题订单（${fn:length(statisticMap.problem) }）</a>
		 		 		    </div>
		 		 		</div>
		 		 		<div class="searchDiv">
		 		 			<div class="search">
		 		 				订单搜索：
			 		 			<select name="searchBean.searchMonth">
			 		 				<option >所有定单信息</option>
			 		 				<option value="1" <c:if test="${ not empty searchBean.searchMonth  and searchBean.searchMonth ne''}"></c:if>>定单信息</option>
			 		 			</select>
			 		 			<input  type='text' style="width:400px; margin-top:-3px;" name="searchBean.name"   value="${searchBean.name }"/>
			 		 			<input type="button" value="查&nbsp;&nbsp;询" onclick="doSearchOrder()"></input>
		 		 			</div>
		 		 		</div>
		 		 		<div class="queryResultDiv">
		 		 		<c:if test="${not empty orderforminfoList}">
		 		 			<table style="width:100%;" cellpadding="0px" cellspacing="0px">
		 		 				<tr class="head">
		 		 					<td align="center" width="15%">商品名称</td>
		 		 					<td align="center" width="25%">商品数量</td>
		 		 					<td align="center" width="25%">商品价格</td>
		 		 					<td align="center" width="10%">金额(元)</td>
		 		 					<td align="center" width="10%">运费(元)</td>
		 		 					<td align="center" width="10%">状态</td>
		 		 				</tr>
		 		 				<c:forEach items="${orderforminfoList}" var="data">
		 		 				<tr class="trData">
		 		 					<td align="center">${ data.name}</td>
		 		 					<td align="center">${ data.buycount}</td>
		 		 					<td align="center">${ data.price}</td>
		 		 					<td align="center">${ data.buycount*data.price}</td>
		 		 					<td align="center">${ data.freight}</td>
		 		 					<td align="center">
		 		 					<c:choose>
		 		 					<c:when test="${data.status eq '00' }">未处理</c:when>
		 		 					<c:when test="${data.status eq '01' }">处理中</c:when>
		 		 					<c:when test="${data.status eq '02' }">审核中</c:when>
		 		 					<c:when test="${data.status eq '03' }">已订购</c:when>
		 		 					<c:when test="${data.status eq '04' }">已到货</c:when>
		 		 					<c:when test="${data.status eq '05' }">已入库</c:when>
		 		 					<c:when test="${data.status eq '06' }"></c:when>
		 		 					<c:when test="${data.status eq '07' }"></c:when>
		 		 					<c:when test="${data.status eq '08' }"></c:when>
		 		 					<c:when test="${data.status eq '09' }"></c:when>
		 		 					<c:when test="${data.status eq '10' }">无货</c:when>
		 		 					<c:when test="${data.status eq '11' }">暂时缺货</c:when>
		 		 					<c:when test="${data.status eq '12' }">无效</c:when>
		 		 					<c:when test="${data.status eq '13' }">退换货</c:when>
		 		 					<c:when test="${data.status eq '14' }">已退货</c:when>
		 		 					<c:when test="${data.status eq '15' }">补款中</c:when>
		 		 					<c:when test="${data.status eq '16' }">联系卖家中</c:when>
		 		 					<c:when test="${data.status eq '17' }">问题订单</c:when>
		 		 					</c:choose>
		 		 					</td>
		 		 				</tr>
		 		 				</c:forEach>
		 		 				<tr class="trData sumData">
		 		 					<td  align="center">合计：</td>
		 		 					<td align="center" colspan="5">${totalMap.totalAmount}</td>
		 		 				</tr>
		 		 			</table>
		 		 			<div class="pageOut"><div class="pageInner"><< 1 2 >></div></div>
		 		 			</c:if>
		 		 			<c:if test="${ empty orderforminfoList}">
		 		 			<div class="searchIsNull">没有符合条件的包裹，请尝试其他条件</div>
		 		 			</c:if>
		 		 		</div>
			 		</div>
			 		</form>
		 		 </div>
	 		 </div>
	 	</div>
	 	<div class="winBottomOuter">
	 		<div class="winBottomInner"></div>
	 	</div>
	 </div>
	 <!--页面中部内容-结束-->
	<%@include file="/include/footer.jsp" %>
</body>
<script type="text/javascript">
function showOpreate(){
	$("#operateOrder").toggle();
}
function searchOperate(str){
	if(str!='ALL'){
	$("#searchKey").val(str);
	}else{
		$("#searchKey").val("");
	}
	$("#searchOrderForm").submit();
}
function doSearchOrder(){
	$("#searchOrderForm").submit();
}
</script>
</html>